package com.eight.travel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eight.travel.pojo.Admin;
import com.eight.travel.pojo.User;
import com.eight.travel.utils.BaseResp;
import org.springframework.boot.autoconfigure.kafka.KafkaProperties;

/**
 * @author Q小旭
 * @version 1.0
 */
public interface AdminService extends IService<Admin> {

    //分页查询所有管理员
    BaseResp findAll(Integer page,Integer size);
    //删除管理员(需要超级管理员)
    BaseResp deleteById(Admin admin);
    //根据名字查询到管理员
    Admin findByUname(String name);

}
